Code
#install.packages(c("osmdata", "sf", "dplyr", "ggplot2", "rnaturalearth"))
library(osmdata)
Data (c) OpenStreetMap contributors, ODbL 1.0. https://www.openstreetmap.org/copyright
Code
Linking to GEOS 3.12.1, GDAL 3.8.4, PROJ 9.4.0; sf_use_s2() is TRUE
Code
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Code
library(ggplot2)
library(rnaturalearth)
library(osmextract)
Data (c) OpenStreetMap contributors, ODbL 1.0. https://www.openstreetmap.org/copyright.
Check the package website, https://docs.ropensci.org/osmextract/, for more details.
Code
To enable caching of data, set `options(tigris_use_cache = TRUE)`
in your R script or .Rprofile.
Code
library(mapview)
library(lehdr)
library(viridis)
Loading required package: viridisLite
Code
library(viridisLite)
library(spatstat)
Loading required package: spatstat.data
Loading required package: spatstat.univar
Loading required package: spatstat.geom
Loading required package: spatstat.random
Loading required package: spatstat.explore
Loading required package: nlme
Attaching package: 'nlme'
The following object is masked from 'package:dplyr':
collapse
Loading required package: spatstat.model
Loading required package: rpart
Loading required package: spatstat.linnet
spatstat 3.5-0
For an introduction to spatstat, type 'beginner'
Code
udunits database from /usr/share/xml/udunits/udunits2.xml
Code
Loading required package: spData
To access larger datasets in this package, install the spDataLarge
package with: `install.packages('spDataLarge',
repos='https://nowosad.github.io/drat/', type='source')`
Code
Attaching package: 'terra'
The following objects are masked from 'package:spatstat.geom':
area, delaunay, is.empty, rescale, rotate, shift, where.max,
where.min
The following object is masked from 'package:tigris':
blocks
Code
Loading required package: sp
Attaching package: 'raster'
The following object is masked from 'package:nlme':
getData
The following object is masked from 'package:dplyr':
select
Code
Attaching package: 'tictoc'
The following object is masked from 'package:raster':
shift
The following objects are masked from 'package:terra':
shift, size
The following object is masked from 'package:spatstat.geom':
shift
Code
library(tidycensus)
library(leaflet)